<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:dt="http://java.sun.com/jsf/composite/components"
                xmlns:p="http://primefaces.org/ui"
                template="./template3.xhtml">
    
    <ui:define name="mainContent">
        <h2>Register</h2>
        <form id="register">
            <h:outputLabel value="User name: "/>
            <p:inputText value="#{accountsBean.username}"/><br />
            
            <h:outputLabel value="Password: "/>
            <p:password value="#{accountsBean.password}" feedback="true" inline="true" /><br/>
            
            <h:outputLabel value="#{accountsBean.validRegister}" id="registerError" style="color: #cc0033" /><br/>
            <p:commandButton action="#{accountsBean.submitAccount}" value="Submit" update="registerError" />
        </form>
    </ui:define>
    
</ui:composition>
